.map-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  max-height: 100vh;
  width: 100%;
  position: relative;
  background-color: #f5f5f5;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  padding-bottom: 10px;
  overflow-y: auto;
  overflow-x: hidden;
}

.map-container {
  height: 60vh;
  max-height: 500px;
  margin: 0 auto;
  width: 98%;
  position: relative;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.controls-container {
  background-color: transparent;
  padding: 0 10px 5px 10px;
  margin: 0 auto;
  max-width: 900px;
  width: 95%;
  z-index: 10;
}

.date-range-controls {
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
  width: 100%;
}

.date-controls-header {
  margin-bottom: 10px;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.date-controls-header h3 {
  margin: 0;
  font-size: 16px;
  color: #333;
  font-weight: 600;
}

.quick-date-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 5px;
}

.quick-date-button {
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  cursor: pointer;
  font-size: 12px;
  padding: 5px 8px;
  transition: all 0.2s ease;
}

.quick-date-button:hover,
.quick-date-button.active {
  background-color: #1890ff;
  border-color: #1890ff;
  color: #fff;
}

.custom-date-range {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}

.date-input {
  padding: 4px 6px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  flex: 1;
  min-width: 140px;
}

.search-button {
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-button:hover {
  background-color: #40a9ff;
}

.custom-date-range label {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555;
  cursor: pointer;
}

.custom-date-range input[type="checkbox"] {
  margin-right: 8px;
}

.date-inputs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  align-items: flex-end;
}

.date-input-group {
  flex: 1;
  min-width: 180px;
}

.date-input-group label {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
  color: #555;
}

.date-input-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.date-input-group input:focus {
  border-color: #3366FF;
  outline: none;
  box-shadow: 0 0 0 2px rgba(51, 102, 255, 0.2);
}

.date-inputs button {
  background-color: #3366FF;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  height: 38px;
  transition: all 0.2s ease;
}

.date-inputs button:hover {
  background-color: #2851cc;
}

.loading-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.9);
  padding: 15px 25px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  color: #3366FF;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: flex;
  align-items: center;
}

.loading-overlay::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border: 3px solid rgba(51, 102, 255, 0.3);
  border-top-color: #3366FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.95);
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 15px;
  color: #e53935;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-width: 80%;
  text-align: center;
}

@media (max-width: 992px) {
  .tools-panel {
    flex-direction: column;
  }
  
  .map-container {
    height: 130px !important;
    min-height: 130px;
  }
  
  .tools-panel-column {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .map-container {
    height: 200px !important;
    min-height: 200px;
    width: 98% !important;
  }
  
  .quick-date-buttons {
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
  }
  
  .quick-date-buttons button {
    padding: 5px 8px;
    font-size: 12px;
  }
  
  .custom-date-range {
    flex-direction: column;
    align-items: stretch;
  }
  
  .tools-panel {
    flex-direction: column;
  }
  
  .tools-panel-column {
    width: 100%;
    margin-bottom: 5px;
  }
}

.amap-info-content {
  padding: 8px !important;
  max-width: 250px !important;
  font-family: 'Helvetica Neue', Arial, sans-serif !important;
}

.amap-info-content h4 {
  margin: 0 0 8px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.amap-info-content p {
  margin: 5px 0;
  font-size: 12px;
  line-height: 1.4;
  color: #555;
}

.amap-info-content strong {
  color: #333 !important;
  font-weight: 600 !important;
}

/* 自定义信息窗体样式 */
.custom-info-window {
  padding: 8px;
  min-width: 200px;
  max-width: 250px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
}

.custom-info-window h4 {
  margin: 0 0 8px 0;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.point-index {
  background-color: #3366FF;
  color: white;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: normal;
}

.custom-info-window p {
  margin: 5px 0;
  font-size: 12px;
  line-height: 1.4;
  color: #555;
}

.custom-info-window strong {
  color: #333;
  font-weight: 600;
}

.coordinates {
  font-family: monospace;
  background-color: #f5f5f5;
  padding: 2px 5px;
  border-radius: 3px;
  font-size: 12px;
  color: #444;
}

.address-loading {
  display: flex;
  align-items: center;
  margin: 10px 0;
  color: #888;
  font-size: 14px;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 2px solid rgba(51, 102, 255, 0.3);
  border-top-color: #3366FF;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.info-footer {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #888;
  text-align: right;
}

.timestamp-info {
  font-style: italic;
}

/* 图标样式 */
.icon-user, .icon-time, .icon-location {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 5px;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

.icon-user::before {
  content: "👤";
}

.icon-time::before {
  content: "🕒";
}

.icon-location::before {
  content: "📍";
}

/* 美化地图控件 */
.amap-copyright {
  background-color: rgba(255, 255, 255, 0.7) !important;
  padding: 2px 5px !important;
  border-radius: 3px !important;
}

.amap-toolbar {
  background-color: rgba(255, 255, 255, 0.9) !important;
  padding: 5px !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1) !important;
}

/* 地址信息样式 */
.address-info {
  margin-top: 15px;
}

.address-info h5 {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #333;
  font-weight: 600;
}

.address-details {
  margin-bottom: 15px;
}

.address-main {
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.4;
}

.address-components {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.address-component {
  background-color: #f0f2f5;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  color: #666;
}

.street-info {
  font-size: 13px;
  color: #555;
  margin-top: 5px;
}

/* 错误样式 */
.address-error {
  color: #e53935;
    padding: 10px;
  background-color: #ffebee;
  border-radius: 4px;
  font-size: 13px;
  display: flex;
  align-items: center;
}

.icon-address::before {
  content: "🏠";
}

.icon-street::before {
  content: "🛣️";
}

.icon-error::before {
  content: "⚠️";
  margin-right: 5px;
}

/* 标记标签样式 */
.marker-label {
  background-color: #3366FF;
  color: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  font-size: 10px;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 确保标记点可见 */
.amap-marker {
  opacity: 1 !important;
  visibility: visible !important;
}

.amap-marker-label {
  border: none !important;
  background-color: transparent !important;
}

/* 日期选择器容器 */
.date-picker-container {
  margin-top: 15px;
  background-color: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  width: 100%;
}

.date-picker-header {
  padding: 10px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.custom-checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.custom-checkbox input[type="checkbox"] {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  accent-color: #1890ff;
}

.checkbox-text {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.date-picker-content {
  padding: 10px;
  background-color: #fafafa;
}

.date-picker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}

.date-picker-field {
  flex: 1;
  min-width: 180px;
}

.date-picker-label {
  font-size: 13px;
  color: #666;
  margin-bottom: 5px;
}

.date-picker-input-wrapper {
  position: relative;
}

.date-picker-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  font-size: 14px;
  transition: all 0.3s;
  background-color: white;
}

.date-picker-input:focus {
  border-color: #1890ff;
  outline: none;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.date-picker-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
}

.date-picker-separator {
  color: #999;
  font-size: 14px;
  padding: 0 5px;
  margin-top: 20px;
}

.date-picker-actions {
  display: flex;
  justify-content: flex-end;
}

.date-picker-button {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1890ff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.date-picker-button:hover {
  background-color: #40a9ff;
}

.button-icon {
  margin-right: 6px;
}

.tools-panel {
  display: flex;
  flex-direction: row;
  gap: 5px;
  margin: 0 auto 5px auto;
  max-width: 98%;
  width: 98%;
  max-height: none;
  overflow: visible;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.tools-panel-column {
  flex: 1;
  min-width: 0;
  padding: 5px;
}

/* 确保高德地图容器正确显示 */
.amap-container {
  width: 100% !important;
  height: 100% !important;
} 